package com.mamahao.vmnetframework.framework.net

import com.mamahao.vmnetframework.framework.net.basis.exception.base.BaseException
import com.mamahao.vmnetframework.framework.net.service.MMHService
import kotlinx.coroutines.Deferred

interface IHttpInterface<T>{

    var _showProgressBar:Boolean

    var _method: (MMHService.() -> Deferred<T>)

    fun onStart(onStart: () -> Unit)

    fun onFail(onError: (BaseException) -> Unit)

    fun onSuccess(onSuccess: (T) -> Unit)

    fun onFinish(onFinish: () -> Unit)
}